/**
 * BatchMngtServiceImpl.java - 2012-2-10
 *
 * Licensed Property to China UnionPay Co., Ltd.
 * 
 * (C) Copyright of China UnionPay Co., Ltd. 2010
 *     All Rights Reserved.
 *
 * Project Info: China UnionPay Internet Acquiring Project
 * 
 * Modification History:
 * =============================================================================
 *   Author         Date          Description
 *   ------------ ---------- ---------------------------------------------------
 *        
 * =============================================================================
 */
package com.lijin.batchsys.web.service.impl;

import com.lijin.batchsys.framework.dao.BatchInfoDAO;
import com.lijin.batchsys.framework.dao.JobInfoDAO;
import com.lijin.batchsys.framework.dao.StepInfoDAO;
import com.lijin.batchsys.framework.dao.model.BatchInfo;
import com.lijin.batchsys.framework.dao.model.JobInfo;
import com.lijin.batchsys.framework.dao.model.StepInfo;
import com.lijin.batchsys.framework.enums.BatchPageTable;
import com.lijin.batchsys.web.bean.PageInfo;
import com.lijin.batchsys.web.service.BatchMngtService;

/**
 * Description: 批量管理服务类实现类
 *
 * (C) Copyright of China UnionPay Co., Ltd. 2010.
 *
 */
public class BatchMngtServiceImpl extends BaseServiceImpl implements BatchMngtService {

	private BatchInfoDAO batchInfoDAO;
	private JobInfoDAO   jobInfoDAO;
	private StepInfoDAO  stepInfoDAO;
	
	public void setJobInfoDAO(JobInfoDAO jobInfoDAO) {
		this.jobInfoDAO = jobInfoDAO;
	}
	public void setStepInfoDAO(StepInfoDAO stepInfoDAO) {
		this.stepInfoDAO = stepInfoDAO;
	}
	public void setBatchInfoDAO(BatchInfoDAO batchInfoDAO) {
		this.batchInfoDAO = batchInfoDAO;
	}
	
	@Override
	public void buildbatchPageInfo(PageInfo<BatchInfo> batchPageInfo) {
		
	    buildPageInfo(null, batchPageInfo, BatchPageTable.BATCH_INFO, batchInfoDAO);
	}


	@Override
	public void buildStepPageInfo(PageInfo<StepInfo> stepPageInfo) {
		buildPageInfo(null, stepPageInfo, BatchPageTable.BATCH_STEP_INFO, stepInfoDAO);
	}

	@Override
	public void buildJobPageInfo(PageInfo<JobInfo> jobPageInfo) {
		buildPageInfo(null, jobPageInfo, BatchPageTable.BATCH_JOB_INFO, jobInfoDAO);
	}

	
}